//创建版心
.wrapper{
    width: 1200px;
    margin: 0 auto;
}
//创建清除浮动影响的类
.clearfix:before,.clearfix:after{
    content: "";
    display: table;
}
.clearfix:after{
    clear: both;
}

//设置body
body{
    background-color: #f3f5f7;
}

//设置header样式
.header{
    height: 42px;
    margin-top: 30px;
    margin-bottom: 30px;
    // background-color: #bfa;
}

//设置logo
h1{
    float: left;
}

//设置导航区域
.nav{
    float: left;
    height: 42px;
    // background-color: green;
    margin-left: 70px;

    li{
        float: left;
        margin-right: 26px;

        a{
            display: inline-block;
            height: 42px;
            line-height: 42px;
            padding: 0 9px;
            font-size: 18px;
            color: #050505;
            // border-bottom: 2px solid #00a4ff;
            
        }
        a:hover{
            border-bottom: 2px solid #00a4ff;
        }
    }
}

//设置搜索栏
.search{
    width: 412px;
    height: 40px;
    border: 1px solid #00a4ff;
    float: left;
    margin-left: 59px;

    input{
        float: left;
        //362-2左右边距-20padding-left
        width: 340px;
        height: 38px;
        border: none;
        padding-left: 20px;
        
    }
    input::placeholder{
        font-size: 14px;
        color: #bfbfbb;
    }

    button{
        float: right;
        width: 50px;
        height: 40px;
        background-image: url(../images/btn.png);
        border: none;
    }
}

//设置用户显示
.user{
    // background-color: aqua;
    float: right;
    height: 42px;
    // width: 118px;    昵称会有长短变化所以不适合固定宽度
    margin-right: 38px;
    line-height: 42px;

    img{
        //调节图片垂直对齐方式 middle 垂直居中
        vertical-align: middle;
    }
}

// 设置轮播图
.banner{
    height: 420px;
    background-color: #1c036c;

    .inner{
        height: 420px;
        background-image: url(../images/banner2.png);

        .left{
            width: 190px;
            //420-12
            height: 408px;
            float: left;
            background-color: rgba(0,0,0,0.3);
            padding: 6px 20px;
            line-height: 44px;

            ul{
                li{
                    a{
                        color: #fff;
                        font-size: 14px;
                        span{
                            float: right;
                        }
                    }
                    a:hover{
                        color: #00a4ff;
                    }
                }
            }
        }
        .right{
            float: right;
            width: 228px;
            height: 300px;
            background-color: #fff;
            margin-top: 50px;

            h2{
                height: 48px;
                line-height: 48px;//文字垂直居中
                text-align: center;//文字水平居中
                background-color: #9bcdea;
                font-size: 18px;
                color: white;
                font-weight: bolder;
            }

            .content{
                padding: 0 18px;

                dl{
                    padding: 14px 0;
                    border-bottom: 2px solid #e5e5e5;

                    dt{
                        font-size: 16px;
                        color: #4e4e4e;
                        padding: 1px;
                    }
                    dd{
                        font-size: 14px;
                        color: #a5a5aa;
                        padding: 1px;
                    }
                }
            }

            .more{
                display: block;
                width: 200px;
                height: 40px;
                color: #00a4ff;
                border: 1px solid #00a4ff;
                line-height: 40px;
                text-align: center;
                margin: 4px auto;
                font-weight: bolder;
            }
        }
    }
}

//设置精品推荐栏
.goods{
    height: 60px;
    background-color: #fff;
    margin-top: 8px;
    box-shadow: 0px 2px 3px 0px 
		rgba(118, 118, 118, 0.2);
    line-height: 60px;
    padding-left: 34px;
    padding-right: 26px;

    h2{
        float: left;
        color: #00a4ff;

    }
    ul{
        float: left;
        margin-left: 30px;

        li{
            float: left;

            a{
                border-left: 1px solid #a5a5aa;
                padding: 0 30px;
                font-size: 16px;
                color: #050505;
            }
        }
    }
    .xingqu{
        float: right;
        color: #00a4ff;
        font-size: 14px;
    }
}